* Examining Democratic and Republican National Committee Party Branding Activity, 1953-2012
* Boris Heersink (bheersink@fordham.edu)
* Conditionally accepted at Perspectives on Politics

set scheme s1mono

*FIGURES AND TABLES - MAIN MANUSCRIPT

*Figure 1
use DescriptiveData.dta
line dnctotal rnctotal year, yscale(range (0 650)) ylabel(0 (100) 650) xlabel(1952(8)2012) xtitle("") lpattern (solid dash)
graph save Figure1, replace
graph export Figure1.pdf, replace

*Figure 2
use DescriptiveData.dta
line dnctotal dncrelevant year, yscale(range (0 650)) ylabel(0 (100) 650) xlabel(1952(8)2012) xtitle("") lpattern (solid dash)
graph save dncarticles, replace
line rnctotal rncrelevant year, yscale(range (0 650)) ylabel(0 (100) 650) xlabel(1952(8)2012) xtitle("") lpattern (solid dash)
graph save rncarticles, replace
gr combine dncarticles.gph rncarticles.gph
graph save Figure2, replace
graph export Figure2.pdf, replace

*Figure 3
use DescriptiveData.dta
line dncrelevant rncrelevant year, yscale(range (0 300)) ylabel(0 (50) 300) xlabel(1952(8)2012) xtitle("") lpattern (solid dash)
graph save Figure3, replace
graph export Figure3.pdf, replace

*Table 1
use ArticleData.dta
xi: nbreg lag_brandingsum whitehouse presey midey dem length scandal, robust
xi: nbreg lag_brandingsum whitehouse dem scandal i.year i.month, robust
xi: nbreg lag_brandingsum majority  minpres presey midey dem length scandal, robust
xi: nbreg lag_brandingsum majority minpres dem scandal i.year i.month, robust

*Figure 4: Presidents and NYT Coverage of Branding Activity - Linear Regression
use ArticleData.dta
reg lag_brandingsum majority minpres presey midey dem length scandal, robust
coefplot, keep(lag_brandingsum majority minpres presey midey dem length scandal) xline (0)
graph save Figure4, replace
graph export Figure4.pdf, replace

*Table 2
use ArticleData.dta
xi: nbreg lag_allsum majority minpres presey midey dem length scandal, robust
xi: nbreg lag_brandingsum majority minpres presey midey dem length scandal, robust
xi: nbreg lag_servicesum majority minpres presey midey dem length scandal, robust

*Figure 5
use ArticleData.dta
xi: nbreg lag_attack majority minpres presey midey dem length scandal, robust
estimates store Attack
xi: nbreg lag_pub majority minpres presey midey dem length scandal, robust
estimates store Publicity
xi: nbreg lag_policy majority minpres presey midey dem length scandal, robust
estimates store Policy
coefplot Attack Publicity Policy, drop(_cons) xline(0)
graph save Figure5, replace
graph export Figure5.pdf, replace

*Figure 6
use ArticleData.dta
xi: nbreg lag_campaigntarget majority minpres presey midey dem length scandal, robust
estimates store Campaign
xi: nbreg lag_human majority minpres presey midey dem length scandal, robust
estimates store HR
xi: nbreg lag_recruit majority minpres presey midey dem length scandal, robust
estimates store Recruitment
xi: nbreg lag_fund majority minpres presey midey dem length scandal, robust
estimates store Fundraising
coefplot Campaign HR Recruitment Fundraising, drop(_cons) xline(0)
graph save Figure6, replace
graph export Figure6.pdf, replace

*FIGURES AND TABLES - SUPPLEMENTAL APPENDIX

*Figure A-1
use DescriptiveData_DNCPolicy.dta
line dncpolicy year, yscale(range (0 50)) ylabel(0 (15) 50) xlabel(1956(4)1992) xtitle("") lpattern (solid dash) xline(1957 1960, lcolor(red))
graph save dncpolicy5660, replace
line percdncpolicy year, yscale(range (0 50)) ylabel(0 (15) 50) xlabel(1956(4)1992) xtitle("") lpattern (solid dash) xline(1957 1960, lcolor(red))
graph save dncpolicyperc5660, replace
gr combine dncpolicy5660.gph dncpolicyperc5660.gph, col(1) iscale(1)
graph save FigureA1, replace
graph export FigureA1.pdf, replace

*Figure A-2
use DescriptiveData_DNCProcedure.dta
line dncconv year, yscale(range (0 50)) ylabel(0 (15) 50) xlabel(1956(4)1992) xtitle("") lpattern (solid dash) xline(1969 1976, lcolor(red))
graph save dncprocedure6976, replace
line percdncconv year, yscale(range (0 50)) ylabel(0 (15) 50) xlabel(1956(4)1992) xtitle("") lpattern (solid dash) xline(1969 1976, lcolor(red))
graph save dncprcoedureperc6976, replace
gr combine dncprocedure6976.gph dncprcoedureperc6976.gph, col(1) iscale(1)
graph save FigureA2, replace
graph export FigureA2.pdf, replace

*Table A-1
use ArticleData.dta
reg lag_brandingsum whitehouse presey midey dem length scandal, robust
reg lag_brandingsum whitehouse dem scandal i.year i.month, robust
reg lag_brandingsum majority minpres presey midey dem length scandal, robust
reg lag_brandingsum majority minpres dem scandal i.year i.month, robust

*Table A-2
use ArticleData.dta
xi: nbreg lag_attack majority minpres presey midey dem length scandal, robust
xi: nbreg lag_pub majority minpres presey midey dem length scandal, robust
xi: nbreg lag_policy majority minpres presey midey dem length scandal, robust

*Table A-3
use ArticleData.dta
xi: nbreg lag_campaigntarget majority minpres presey midey dem length scandal, robust
xi: nbreg lag_human majority minpres presey midey dem length scandal, robust
xi: nbreg lag_recruit majority minpres presey midey dem length scandal, robust
xi: nbreg lag_fund majority minpres presey midey dem length scandal, robust

*Table A-4
use ArticleData.dta
xi: nbreg brandingsum whitehouse presey midey dem length scandal, robust
xi: nbreg brandingsum whitehouse dem scandal i.year i.month, robust
xi: nbreg brandingsum majority  minpres presey midey dem length scandal, robust
xi: nbreg brandingsum majority minpres dem scandal i.year i.month, robust

*Table A-5
use ArticleData.dta
poisson lag_brandingsum whitehouse presey midey dem length scandal, robust
poisson lag_brandingsum whitehouse dem scandal i.year i.month, robust
poisson lag_brandingsum majority  minpres presey midey dem length scandal, robust
poisson lag_brandingsum majority minpres dem scandal i.year i.month, robust

*Table A-6
use ArticleData_TimeSeries.dta
xi: nbreg brandingsum whitehouse presey midey dem length scandal, robust
xi: nbreg brandingsum whitehouse dem scandal i.year i.month, robust
xi: nbreg brandingsum majority  minpres presey midey dem length scandal, robust
xi: nbreg brandingsum majority minpres dem scandal i.year i.month, robust

*Table A-7
use ArticleData_Quart.dta
xi: nbreg brandingsum whitehouse presey midey dem length scandal, robust
xi: nbreg brandingsum whitehouse dem scandal i.year i.quarter, robust
xi: nbreg brandingsum majority  minpres presey midey dem length scandal, robust
xi: nbreg brandingsum majority minpres dem scandal i.year i.quarter, robust

*Table A-8
use ArticleData_Year.dta
xi: nbreg brandingsum whitehouse presey midey dem length scandal, robust
xi: nbreg brandingsum whitehouse dem scandal i.year, robust
xi: nbreg brandingsum majority  minpres presey midey dem length scandal, robust
xi: nbreg brandingsum majority minpres dem scandal i.year, robust

*Table A-9
use ArticleData_CT.dta
xi: nbreg brandingsum whitehouse presey midey dem length scandal, robust
xi: nbreg brandingsum whitehouse dem scandal i.CongTerm, robust
xi: nbreg brandingsum majority  minpres presey midey dem length scandal, robust
xi: nbreg brandingsum majority minpres dem scandal i.CongTerm, robust
